<template>
	<view class='nav'>
		<block  v-for="(item,key) in menus" :key="key">
			<view class='item'>
				<view class='pictrue'>
					<image :src='item.img'></image>
				</view>
				<view class="menu-txt">{{item.info[0].value}}</view>
			</view>
		</block>
	</view>
</template>

<script>
	export default {
		name: 'c_menus',
		props: {
			dataConfig: {
				type: Object,
				default: () => {}
			}
		},
		data() {
			return {
				menus: []
			};
		},
		created() {
			this.menus = this.dataConfig.imgList.list;
			console.log('--',this.menus);
		},
		mounted() {},
		methods: {

		}
	}
</script>

<style lang="scss">
	.nav {
		width: 100%;
		background-color: #fff;
		padding-bottom: 30rpx;

		.item {
			margin-top: 30rpx;
			width: 25%;
			text-align: center;
			font-size: 24rpx;
			float: left;

			.pictrue {
				width: 82rpx;
				height: 82rpx;
				margin: 0 auto;

				&.default {
					background-color: #ccc;
					border-radius: 50%;
					text-align: center;
					line-height: 90rpx;

					.iconfont {
						font-size: 40rpx;
					}
				}

				image {
					width: 100%;
					height: 100%;
					border-radius: 50%;
				}
			}

			.menu-txt {
				margin-top: 15rpx;
			}

			&.four {
				width: 25%;

				.pictrue {
					width: 90rpx;
					height: 90rpx;
				}
			}
		}
	}
</style>
